#!/bin/bash
#
find /sh/ -name "file*" | while read line ;do
	sh_file=$(echo "$line" | awk -F / '{print $NF}' )
	sh_jym=$(md5sum  $line | awk '{print $1}')
	find /bj/ -name "file*" | while read lined ;do
		bj_file=$(echo "$lined" | awk -F / '{print $NF}')
		bj_jym=$(md5sum  $lined | awk '{print $1}')
		if [ $sh_file == $bj_file ];then
			n=1
			
			if [ $sh_jym != $bj_jym ];then
            echo "文件${sh_file}数据顺坏"
	        fi
			break
		fi
		
	done
	
done
